﻿using DevExpress.Mvvm;
using DevExpress.Mvvm.DataAnnotations;
using DXApp.Core;
 using Serilog;

namespace DXApp.ViewModels
{
    public class MainViewModel : ViewModelBase
    {
        private ILogger logger;
        public MainViewModel(IUserManager userManager,ILogger logger)
        {
            this.logger = logger;
            UserName = userManager.UserName;
        }

        public string UserName
        {
            get { return GetValue<string>(); }
            set { SetValue(value); }
        }


        [Command]

        public void Test()
        {
            logger.Information("Test");
        }
    }
}
